# Create your views here.
from arnagroup.shortcuts import r
from arnagroup.base.models import TopMenuCategory, TopMenuSubCategory

def index(request):
#    danisman = Danisman.objects.filter(is_active=True).order_by('-weight')
    return r('base.html',{}, request)

def page_details(request, path_id):
    icerik = TopMenuCategory.objects.get(id = path_id)
    return r('dinamic_contents.html', { 'icerik':icerik } , request)

def sub_page_details(request, path_id):
    icerik = TopMenuSubCategory.objects.get(id = path_id)
    return r('dinamic_contents.html', { 'icerik':icerik } , request)  
